//
//  HelloWorldLayer.h
//  projekt1
//
//  Created by A B on 1/10/12.
//  Copyright __MyCompanyName__ 2012. All rights reserved.
//


// When you import this file, you import all the cocos2d classes
#import "cocos2d.h"
#import "Box2D.h"
#import "GLES-Render.h"
#import "MyContactListener.h"
#import "SimpleAudioEngine.h"

// HelloWorldLayer
@interface HelloWorldLayer : CCLayer
{
    
    //foot contact listener
    MyContactListener* footContactListener;
    b2Body* enemys[100];
    int enemyCount;
    
    //debug object
    GLESDebugDraw* debugDraw;

    //box2d
    b2World* world;
    b2Body* body;
    CGPoint endTouchHere;
    
    CGPoint rysX;
    
    
    CCMenu *menu;
    
    //cocos
    
    CCTMXTiledMap* collisionMap;
    CCTMXLayer* colLayer;
    CCTMXLayer* flowerLayer;
    CCTMXLayer* spawnLayer;
    
    BOOL mapMoving;
    CCSprite *ball;
    
    
    CCLabelTTF* scoreLabel;
    CGSize winSize;
    
    
    CCSprite* background;
    
    
    int ballWidth;
    int ballHeight;
    
    int flowerCount;
    
    int initialX;
    int initialY;

}

// returns a CCScene that contains the HelloWorldLayer as the only child
+(CCScene *) sceneWith:(int)level;

-(void)endLvl;
-(void)enemyContact;
-(void)groundContact;
-(id) initWith:(int) level;
@end


extern BOOL* enemyDirection;



